#ifndef __SeqList_h
#define __SeqList_h 
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

typedef int DataType;
typedef struct SeqList
{
	DataType* arr; //存储动态开辟数组首地址
	size_t size;   //有效数据个数
	size_t capicity; //容量
}SeqList;
void SeqListInit(SeqList* ps);
void SeqListDestroy(SeqList* ps);
void CheckCacpity(SeqList *ps);
void SeqListPushBack(SeqList* ps, DataType x);
void SeqlistPushFront(SeqList* ps,DataType x);
void SeqListPopFront(SeqList* ps);
void SeqListPopBack(SeqList*ps);
void SeqListPrint(SeqList* ps);
int SeqListFind(SeqList* ps,DataType x);

void SeqListInsert(SeqList* ps,size_t pos,DataType x);

void SeqListErase(SeqList* ps,size_t pos);
#endif
